package com.wsl.sharding.pojo;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "db_group")
public class DBGroup {
    @Id
    private int groupId;
    private String groupName;
    private int startId;
    private int endId;

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public int getStartId() {
        return startId;
    }

    public void setStartId(int startId) {
        this.startId = startId;
    }

    public int getEndId() {
        return endId;
    }

    public void setEndId(int endId) {
        this.endId = endId;
    }

    public DBGroup(int groupId, String groupName, int startId, int endId) {
        this.groupId = groupId;
        this.groupName = groupName;
        this.startId = startId;
        this.endId = endId;
    }

    public DBGroup() {
    }

    @Override
    public String toString() {
        return "DBGroup{" +
                "groupId=" + groupId +
                ", groupName='" + groupName + '\'' +
                ", startId=" + startId +
                ", endId=" + endId +
                '}';
    }
}
